import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import VueLazyload from 'vue-lazyload'
import Video from 'video.js'
Vue.prototype.$video = Video
import 'video.js/dist/video-js.css'
// 导入vant
import Vant from 'vant';
import 'vant/lib/index.css';
Vue.use(Vant);


Vue.use(VueLazyload,{
  loading:"https://img.lanrentuku.com/img/allimg/1212/5-121204194027.gif",
  error:"https://img.lanrentuku.com/img/allimg/1212/5-121204194027.gif"
})
// import * as request from './api/request'

import api from './api'

// 全局过滤器引入
import './filters'

// 全局组件 加载中
import './components/global/Loading'


// 时间总线  主页显示隐藏
const eventBus = new Vue()
Vue.prototype.$eventBus = eventBus

// axios 绑定到vue原型上
Vue.prototype.$api = api

Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
 